package com.ilink.groundservice.service.dataset;/**
 * <h3>iLink-java-backend-zhangbo2</h3>
 *
 * @Description <p>针对表【dataset_metadata】的服务接口</p>
 * @Author ZhangBo
 * @Date 2024-09-15 20:37
 **/

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ilink.groundservice.entity.PO.dataset.DatasetMetadata;
import com.ilink.groundservice.entity.VO.dataset.DatasetResponse;
import com.ilink.ilinkapi.dto.ground.dataset.DatasetMetadataRequest;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName DatasetMetadataService
 * @Description
 * @Author ZhangBo
 * @Date 2024-09-15 20:37
 **/
public interface DatasetMetadataService extends IService<DatasetMetadata> {
    IPage<DatasetResponse> getPublicDatasetMetadata(DatasetMetadataRequest request);
    @Transactional
    String downloadDataset(String targetId);
    @Transactional
    String shareDataset(String targetId);
    long getDatasetMetadataCount();
    DatasetResponse getDatasetById(String targetId);
    String getDatasetsReadme(String targetId);
}
